<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>AlignedSplice / UnalignedSplice Avisynth Filter</title>
<link rel="stylesheet" type="text/css" href="../../avisynth.css">
</head>
<body >
<h2>AlignedSplice / UnalignedSplice</h2>
<p><code>AlignedSplice </code>(<var>clip1, clip2 [, ...]</var>)<br>
  <code>UnAlignedSplice </code>(<var>clip1, clip2 [, ...]</var>)</p>
<p><code>AlignedSplice</code> and <code>UnalignedSplice</code> join two or more video
clips end to end. The difference between the filters lies in the way they treat
the sound track. <code>UnalignedSplice</code> simply concatenates the sound tracks
without regard to synchronization with the video. <code>AlignedSplice</code> cuts
off the first sound track or inserts silence as necessary to ensure that the
second sound track remains synchronized with the video.
</p>
<p>You should use <code>UnalignedSplice</code>  when the soundtracks being joined were
originally contiguous - for example, when you're joining files captured with
AVI_IO. Slight timing errors may lead to glitches in the sound if you use <code>AlignedSplice
</code>in these situations.
</p>
<p>Avisynth's scripting language provides <tt>+</tt> and <tt>++</tt> operators
as synonyms for <code>UnalignedSplice</code>  and <code>AlignedSplice</code> 
respectively.
</p>
<p>Also see <a href="../syntax.htm#multiclip" target="_self">here</a> for the 
  resulting clip properties.</p>
<p>&nbsp;</p>
<pre># Join segmented capture files to produce a single clip
UnalignedSplice(AVISource(&quot;cap1.avi&quot;),AVISource(&quot;cap2.avi&quot;),AVISource(&quot;cap3.avi&quot;))
# or: AVISource(&quot;cap1.avi&quot;) + AVISource(&quot;cap2.avi&quot;) + AVISource(&quot;cap3.avi&quot;)

# Extract three scenes from a clip and join them together in a new order
AVISource(&quot;video.avi&quot;)
edited_video = Trim(2000,2500) ++ Trim(3000,3500) ++ Trim(1000,1500)
</pre>
<p><kbd>$Date: 2004/03/09 21:28:07 $</kbd></p>
<FORM>
<INPUT TYPE="Button" VALUE="Back"
onClick="history.go(-1)">
</form>
</body>
</html>
